//
//  UserModel.swift
//  ContactListDemo
//
//  Created by dengwei on 16/5/30.
//  Copyright © 2016年 dengwei. All rights reserved.
//

import Foundation

public class UserModel: NSObject {
    
    public var userId : String!
    
    public var userName:String!
    
    public var userAvator:String!
    
    public var userMobile:String!
    
    /**
     * 用户所属状态<br>
     *
     * 我的好友         1<br>
     * 对我发出邀请的    2<br>
     * 我发出好友邀请的  3<br>
     * 未知            4<br>
     * 手机号好友       5<br>
     * 群聊            10<br>
     */
    public var userStatus = 1
    
    public override init() {
        super.init()
    }
    
    public init(userId:String,userName:String,userAvator:String?,userMobile:String?,userStatus:Int) {
        
        super.init()
        
        self.userId = userId
        self.userName = userName
        self.userAvator = userAvator!
        self.userMobile = userMobile
        self.userStatus = userStatus
    }
    
    public func toString() ->String{
        
        let str1:String! = "userId    = " + self.userId + "userName= " + self.userName + "userMobile= " + userMobile
        let str2:String! = "userAvator= " + self.userAvator + "userStatus= " + self.userStatus.description
        
        return str1 + str2
    }
    
}
